package com.bit.inmap;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;

public class SplashActivity extends Activity {
	 @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.activity_splash);
	        Handler hd = new Handler();
	        hd.postDelayed(new splashhandler() , 3000); // 3초 후에 hd Handler 실행
	    }
	     
	    private class splashhandler implements Runnable{
	        public void run() {
	            startActivity(new Intent(getApplication(), MainActivity.class)); // 로딩이 끝난후 이동할 Activity
	            SplashActivity.this.finish(); // 로딩페이지 Activity Stack에서 제거
	        }
	    }
}
